package com.readjava.json;

import lombok.Data;

@Data
public class ResultVO<T>{
    private Boolean sucess = Boolean.TRUE;
    private T data;
    private ResultVO(){}

    public static <T> ResultVO<T> buildSucess(T t){
        ResultVO<T> resultVO = new ResultVO<>();
        resultVO.setData(t);
        return resultVO;
    }
}
